package com.gxa.mobile.annotation;

import javax.validation.Constraint;
import java.lang.annotation.Documented;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

import static java.lang.annotation.ElementType.*;
import static java.lang.annotation.ElementType.ANNOTATION_TYPE;

/**
 * @author IKE <hp1041735092@outlook.jp>
 * @date 25/3/2024
 */

@Retention(RetentionPolicy.RUNTIME)
@Target({FIELD,METHOD,PARAMETER,ANNOTATION_TYPE})
@Constraint(validatedBy = PhoneNumValidator.class)
@Documented
public @interface VerifyCode {
    String message() default "验证码格式错误";
    Class[] groups() default {};
    Class[] payload() default {};
}
